<?php
    return CMap::mergeArray(
        require(dirname(__FILE__) . '/main.php'),
        array(
            // Put front-end settings there
            // (for example, url rules).
            
            'components' => array(
                // uncomment the following to enable URLs in path-format
                'urlManager' => array(
                    'urlFormat' => 'path',
                    //'showScriptName'=>false,
                    'rules'     => array(
                        
                         '' => 'site/index',
                        'dang-nhap' => 'site/loginweb',
                        'tim-dia-diem' => 'site/timkiem',
                        'danh-muc/<url:[0-9a-zA-Z_-]+>' => 'site/danhmuc',                
                        'noi-dung/<id:[0-9a-zA-Z_-]+>/<ip:[0-9a-zA-Z_-]+>' => 'site/detail',
                    ),
                ),
            ),
        )
    );
?>